home *** CD-ROM | disk | FTP | other *** search
- Path: news1.h1.usa.pipeline.com!usenet
- From: knightofni@usa.pipeline.com (The Knight Who Says Ni!)
- Newsgroups: comp.lang.c++
- Subject: BC4.5 fstream
- Date: Sun, 07 Jan 1996 03:05:56 GMT
- Organization: PSINet/Pipeline USA
- Message-ID: <4cncvn$q51@news1.usa.pipeline.com>
- NNTP-Posting-Host: pipe4.h1.usa.pipeline.com
- X-Newsreader: Forte Free Agent 1.0.82
-
- I'm using BC4.5 to write a door game, and I want it to be compatible
- with multible nodes. This means locking the data files whenever it
- accesses them. If I use fstream::open(), does that prevent all other
- programs from accessing the file? If I open it while another node has
- the file open, what will happen? fstream::open() doesn't return
- anything, so how will I know?
-
- Also, how do I delete the contents of a file, similar to opening it
- with ios::trunc mode, without closing & reopening it?
- _______________________________
- / \ The Knight Who Says "Ni!" \
- \_| |
- | I'm not nearly as think |
- | as you confused I am. |
- | ___________________________|_
- \_/____________________________/
-
-